//
//  JCUIGradients.h
//  JCUIGradients
//
//  Created by TR-L on 2019/11/19.
//  Copyright © 2019 Chuan. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSUInteger, JCUIGradient) {
    JCUIGradientWarmFlame = 1,
    JCUIGradientNightFade,
    JCUIGradientSpringWarmth,
    JCUIGradientJuicyPeach,
    JCUIGradientYoungPassion,
    JCUIGradientLadyLips,
    JCUIGradientSunnyMorning,
    JCUIGradientRainyAshville,
    JCUIGradientFrozenDreams,
    JCUIGradientWinterNeva,
    JCUIGradientDustyGrass,
    JCUIGradientTemptingAzure,
    JCUIGradientHeavyRain,
    JCUIGradientAmyCrisp,
    JCUIGradientMeanFruit,
    JCUIGradientSoftBlue,
    JCUIGradientRipeMalinka,
    JCUIGradientCloudyKnoxville,
    JCUIGradientMalibuBeach,
    JCUIGradientNewLife,
    JCUIGradientTrueSunset,
    JCUIGradientMorpheusDen,
    JCUIGradientRareWind,
    JCUIGradientNearMoon,
    JCUIGradientWildApple,
    JCUIGradientSaintPetersburg,
    JCUIGradientAriellesSmile,
    JCUIGradientPlumPlate,
    JCUIGradientEverlastingSky,
    JCUIGradientHappyFisher,
    JCUIGradientBlessing,
    JCUIGradientSharpeyeEagle,
    JCUIGradientLadogaBottom,
    JCUIGradientLemonGate,
    JCUIGradientItmeoBranding,
    JCUIGradientZeusMiracle,
    JCUIGradientOldHat,
    JCUIGradientStarWine,
    JCUIGradientDeepBlue,
    JCUIGradientCoupDeGrace,
    JCUIGradientHappyAcid,
    JCUIGradientAwesomePine,
    JCUIGradientNewYork,
    JCUIGradientShyRainbow,
    JCUIGradientLoonCrest,
    JCUIGradientMixedHopes,
    JCUIGradientFlyHigh,
    JCUIGradientStrongBliss,
    JCUIGradientFreshMilk,
    JCUIGradientSnowAgain,
    JCUIGradientFebruaryInk,
    JCUIGradientKindSteel,
    JCUIGradientSoftGrass,
    JCUIGradientGrownEarly,
    JCUIGradientSharpBlues,
    JCUIGradientShadyWater,
    JCUIGradientDirtyBeauty,
    JCUIGradientGreatWhale,
    JCUIGradientTeenNotebook,
    JCUIGradientPoliteRumors,
    JCUIGradientSweetPeriod,
    JCUIGradientWideMatrix,
    JCUIGradientSoftCherish,
    JCUIGradientRedSalvation,
    JCUIGradientBurningSpring,
    JCUIGradientNightParty,
    JCUIGradientSkyGlider,
    JCUIGradientHeavenPeach,
    JCUIGradientPurpleDivision,
    JCUIGradientAquaSplash,
    JCUIGradientAboveClouds,
    JCUIGradientSpikyNaga,
    JCUIGradientLoveKiss,
    JCUIGradientSharpGlass,
    JCUIGradientCleanMirror,
    JCUIGradientPremiumDark,
    JCUIGradientColdEvening,
    JCUIGradientCochitiLake,
    JCUIGradientSummerGames,
    JCUIGradientPassionateBed,
    JCUIGradientMountainRock,
    JCUIGradientDesertHump,
    JCUIGradientJungleDay,
    JCUIGradientPhoenixStart,
    JCUIGradientOctoberSilence,
    JCUIGradientFarawayRiver,
    JCUIGradientAlchemistLab,
    JCUIGradientOverSun,
    JCUIGradientPremiumWhite,
    JCUIGradientMarsParty,
    JCUIGradientEternalConstance,
    JCUIGradientJapanBlush,
    JCUIGradientSmilingRain,
    JCUIGradientCloudyApple,
    JCUIGradientBigMango,
    JCUIGradientHealthyWater,
    JCUIGradientAmourAmour,
    JCUIGradientRiskyConcrete,
    JCUIGradientStrongStick,
    JCUIGradientViciousStance,
    JCUIGradientPaloAlto,
    JCUIGradientHappyMemories,
    JCUIGradientMidnightBloom,
    JCUIGradientCrystalline,
    JCUIGradientRaccoonBack,
    JCUIGradientPartyBliss,
    JCUIGradientConfidentCloud,
    JCUIGradientLeCocktail,
    JCUIGradientRiverCity,
    JCUIGradientFrozenBerry,
    JCUIGradientElegance,
    JCUIGradientChildCare,
    JCUIGradientFlyingLemon,
    JCUIGradientNewRetrowave,
    JCUIGradientHiddenJaguar,
    JCUIGradientAboveTheSky,
    JCUIGradientNega,
    JCUIGradientDenseWater,
    JCUIGradientChemicAqua,
    JCUIGradientSeashore,
    JCUIGradientMarbleWall,
    JCUIGradientCheerfulCaramel,
    JCUIGradientNightSky,
    JCUIGradientMagicLake,
    JCUIGradientYoungGrass,
    JCUIGradientColorfulPeach,
    JCUIGradientGentleCare,
    JCUIGradientPlumBath,
    JCUIGradientHappyUnicorn,
    JCUIGradientFullMetal,
    JCUIGradientAfricanField,
    JCUIGradientSolidStone,
    JCUIGradientOrangeJuice,
    JCUIGradientGlassWater,
    JCUIGradientSlickCarbon,
    JCUIGradientNorthMiracle,
    JCUIGradientFruitBlend,
    JCUIGradientMillenniumPine,
    JCUIGradientHighFlight,
    JCUIGradientMoleHall,
    JCUIGradientEarlGray,
    JCUIGradientSpaceShift,
    JCUIGradientForestInei,
    JCUIGradientRoyalGarden,
    JCUIGradientRichMetal,
    JCUIGradientJuicyCake,
    JCUIGradientSmartIndigo,
    JCUIGradientSandStrike,
    JCUIGradientNorseBeauty,
    JCUIGradientAquaGuidance,
    JCUIGradientSunVeggie,
    JCUIGradientSeaLord,
    JCUIGradientBlackSea,
    JCUIGradientGrassShampoo,
    JCUIGradientLandingAircraft,
    JCUIGradientWitchDance,
    JCUIGradientSleeplessNight,
    JCUIGradientAngelCare,
    JCUIGradientCrystalRiver,
    JCUIGradientSoftLipstick,
    JCUIGradientSaltMountain,
    JCUIGradientPerfectWhite,
    JCUIGradientFreshOasis,
    JCUIGradientStrictNovember,
    JCUIGradientMorningSalad,
    JCUIGradientDeepRelief,
    JCUIGradientSeaStrike,
    JCUIGradientNightCall,
    JCUIGradientSupremeSky,
    JCUIGradientLightBlue,
    JCUIGradientMindCrawl,
    JCUIGradientLilyMeadow,
    JCUIGradientSugarLollipop,
    JCUIGradientSweetDessert,
    JCUIGradientMagicRay,
    JCUIGradientTeenParty,
    JCUIGradientFrozenHeat,
    JCUIGradientGagarinView,
    JCUIGradientFabledSunset,
    JCUIGradientPerfectBlue,
};

typedef NS_ENUM(NSUInteger, JCUIGradientDirection) {
    JCUIGradientDirectionTop,
    JCUIGradientDirectionLeft,
    JCUIGradientDirectionRight,
    JCUIGradientDirectionBottom,
    JCUIGradientDirectionDegress
};

CGPoint JCUIGradientGetStartPoint(JCUIGradientDirection direction, CGFloat degree);
CGPoint JCUIGradientGetEndPoint(JCUIGradientDirection direction, CGFloat degree);

CALayer *JCUIGradientMake(JCUIGradient gradient);
